home *** CD-ROM | disk | FTP | other *** search
- #ifndef __IACHeaders__
- #define __IACHeaders__
-
- #include <Types.h>
- #include <Traps.h>
- #include <Files.h>
- #include <Devices.h>
- #include <Memory.h>
-
- const short kAbnormErr = 1;
- const short kMaxApps = 16;
- const short kMaxMessages = 16;
- const short kNoMore = -1;
- const short kBadCsCode = -2;
- const short kMsgMemErr = -3;
- const short kNoErr = 0;
- const short kNoRead = -96;
- const short kNoWrite = -97;
- const short kMoreMessages = 98;
- const short kYesMessagesForMe = 99;
- const char kZeroChar = '\0';
-
- // csCodes for Control Calls
- const short kRegisterApp = 2;
- const short kSendMessage = 3;
- const short kReceiveMessage = 4;
- const short kUnregisterApp = 5;
-
- // csCodes for Status Calls
- const short kAnyMsgForMe = 2;
- const short kWhosThere = 3;
-
- // Because these equates aren't in SysEqu.h
- const short kRdCmd = 2;
- const short kWrCmd = 3;
-
- struct IACRecord {
- short mySignature;
- short partnerSig;
- short indexForWhosThere;
- short actualCount;
- char* messageString;
- char *appName;
- };
- typedef struct IACRecord IACRecord;
- #endif